﻿using System;
using System.Collections.Generic;
using System.Text;

namespace NetCoreCMS.Models
{
    /// <summary>
    /// 订单配置信息
    /// </summary>    
    public class Orderconfig
    {
        /// <summary>
        /// 开启匿名购物0否1是
        /// </summary>
        public int anonymous { get; set; } = 0;
        /// <summary>
        /// 税费类型1百分比2固定金额
        /// </summary>
        public int taxtype { get; set; } = 1;
        /// <summary>
        /// 百分比取值范围：0-100，固定金额单位为“元”
        /// </summary>
        public decimal taxamount { get; set; } = 0;
        /// <summary>
        /// 订单确认通知0关闭1短信2邮件
        /// </summary>
        public int confirmmsg { get; set; } = 0;
        /// <summary>
        /// 通知模id
        /// </summary>
        public int confirmid { get; set; } = 0;
        public string confirmcallindex { get; set; }
        /// <summary>
        /// 订单发货通知0关闭1短信2邮件
        /// </summary>
        public int expressmsg { get; set; } = 0;
        /// <summary>
        /// 通知模板id
        /// </summary>
        public int expressid { get; set; } = 0;
        public string expresscallindex { get; set; }
        /// <summary>
        /// 订单完成通知0关闭1短信2邮件
        /// </summary>
        public int completemsg { get; set; } = 0;
        /// <summary>
        /// 通知模板id
        /// </summary>
        public int completeid { get; set; }
        public string completecallindex { get; set; }

        /// <summary>
        /// 快递100API地址
        /// </summary>
        public string kuaidiapi { get; set; } = "https://poll.kuaidi100.com/poll/query.do";
        public string kuaidiid { get; set; } 
        /// <summary>
        /// 快递100Key
        /// </summary>
        public string kuaidikey { get; set; }
        /// <summary>
        /// 物流跟踪返回0json字符串1xml对象2html表格3文本
        /// </summary>
        public int kuaidishow { get; set; } = 3;
        /// <summary>
        /// 跟踪信息数量0只返回一行信息1返回完整信息
        /// </summary>
        public int kuaidimuti { get; set; } = 1;
        /// <summary>
        /// 跟踪信息排序asc：按时间由旧到新,desc：按时间由新到旧
        /// </summary>
        public string kuaidiorder { get; set; } = "desc";
    }
}
